<?php

namespace Luka\StoreBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Luka\StoreBundle\Entity\Objectservice
 *
 * @ORM\Table(name="ObjectService")
 * @ORM\Entity
 */
class Objectservice
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var Visibility
     *
     * @ORM\ManyToOne(targetEntity="Visibility")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="visibility_id", referencedColumnName="id")
     * })
     */
    private $visibility;

    /**
     * @var Object
     *
     * @ORM\ManyToOne(targetEntity="Object")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="object_id", referencedColumnName="id")
     * })
     */
    private $object;

    /**
     * @var Service
     *
     * @ORM\ManyToOne(targetEntity="Service")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="service_id", referencedColumnName="id")
     * })
     */
    private $service;



    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set visibility
     *
     * @param Luka\StoreBundle\Entity\Visibility $visibility
     */
    public function setVisibility(\Luka\StoreBundle\Entity\Visibility $visibility)
    {
        $this->visibility = $visibility;
    }

    /**
     * Get visibility
     *
     * @return Luka\StoreBundle\Entity\Visibility 
     */
    public function getVisibility()
    {
        return $this->visibility;
    }

    /**
     * Set object
     *
     * @param Luka\StoreBundle\Entity\Object $object
     */
    public function setObject(\Luka\StoreBundle\Entity\Object $object)
    {
        $this->object = $object;
    }

    /**
     * Get object
     *
     * @return Luka\StoreBundle\Entity\Object 
     */
    public function getObject()
    {
        return $this->object;
    }

    /**
     * Set service
     *
     * @param Luka\StoreBundle\Entity\Service $service
     */
    public function setService(\Luka\StoreBundle\Entity\Service $service)
    {
        $this->service = $service;
    }

    /**
     * Get service
     *
     * @return Luka\StoreBundle\Entity\Service 
     */
    public function getService()
    {
        return $this->service;
    }
}